package org.openscheduler.modules.job;

import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;
import org.quartz.JobDataMap;
import org.quartz.JobKey;

// 웹 작업하면서 프로퍼티를 수정해보자.
public class JobTemplate {
	
	private JobKey jobkey;
	private String className;
	private Boolean jobShouldRecover;
	private Boolean jobDurability;
	private String jobDescription;
	private JobDataMap newJobDataMap;
	private Boolean replace;

	public JobDataMap getNewJobDataMap() {
		return newJobDataMap;
	}

	public void setNewJobDataMap(JobDataMap newJobDataMap) {
		this.newJobDataMap = newJobDataMap;
	}

	public JobKey getJobkey() {
		return jobkey;
	}

	public void setJobkey(JobKey jobkey) {
		this.jobkey = jobkey;
	}

	public String getClassName() {
		return className;
	}

	public void setClassName(String className) {
		this.className = className;
	}

	public Boolean getJobShouldRecover() {
		return jobShouldRecover;
	}

	public void setJobShouldRecover(Boolean jobShouldRecover) {
		this.jobShouldRecover = jobShouldRecover;
	}

	public Boolean getJobDurability() {
		return jobDurability;
	}

	public void setJobDurability(Boolean jobDurability) {
		this.jobDurability = jobDurability;
	}

	public String getJobDescription() {
		return jobDescription;
	}

	public void setJobDescription(String jobDescription) {
		this.jobDescription = jobDescription;
	}

	public Boolean getReplace() {
		return replace;
	}

	public void setReplace(Boolean replace) {
		this.replace = replace;
	}
	
	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}

}
